import socket
class connection:
    def __init__(self, ip, port, type):
        self.ip		= ip
        self.port	= port
        self.type	= type 
        self.sock	= socket.socket(socket.AF_INET, socket.SOCK_STREAM)        

    def connect(self):
        self.sock.connect((self.ip, self.port))

    def disconnect(self):
        self.sock.close()

    def send_date(msg,waitTime=0.0):
        self.send(msg)

